package com.xnyzc.lhy.mis.controller.cmsapi.driver;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.mis.entity.param.cms.driver.CmsOadUserComingParam;
import com.xnyzc.lhy.mis.service.cms.driver.CmsDriverComingManageService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**司机通勤列表
 * @author conglijuan
 * @date 2019-08-22 10:42
 */
@RestController
@RequestMapping("/cmsapi/driver/comming")
public class CmsDriverComingManageController {


    @Autowired
    private CmsDriverComingManageService cmsDriverComingManageService;

    /**
     * 获取司机通勤列表
     *
     * @param cmsOadUserComingParam:
     * @return
     */
    @ApiOperation(value = "司机通勤列表", notes = "司机通勤列表")
    @PostMapping(value = "/getCmsDriverComingList")
    public Rv getCmsDriverComingList(@RequestBody CmsOadUserComingParam cmsOadUserComingParam){
        return cmsDriverComingManageService.getCmsDriverComingList(cmsOadUserComingParam);
    }

    /**
     * 导出
     * @return
     */
    @PostMapping(value = "exportCmsDriverComingExcel")
    public Rv exportCmsDriverComingExcel(@RequestBody CmsOadUserComingParam cmsOadUserComingParam){
        return cmsDriverComingManageService.exportCmsDriverComingExcel(cmsOadUserComingParam);
    }
}
